const moment = require('moment');
const date = new Date();
// const time = moment(new Date()).format('YYYY-MM-DD HH:mm:ss');
const time = moment(date);
console.log(time);